package com.soft.front;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class FrontInterceptor extends HandlerInterceptorAdapter {
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler)
			throws ServletException {
		try {
			request.setAttribute("sys_path", request.getContextPath());
			request.setAttribute("sys_temp", "template");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return true;
	}
}
